package lesson17.cars;

public class Jeep extends Car{
	
	protected boolean isSUV;
	private String type = "Jeep";
	
	void switch4x4()
	{
		System.out.println("4 x 4 switched on!");
		System.out.println(super.type);
		System.out.println(type); // same as this.type
	}
	
	void driveOffRoad()
	{
		System.out.println("Going offrad!");
	}

	Jeep()
	{
		super(150);
	}
	
	@Override
	void startEngine() {
		System.out.println("Jeep engine is started!");
	}
	
	@Override
	public String toString() {
		return this.type.toString();
	}
	
}
